#! /usr/bin/env python
'''
    

'''
from std_msgs.msg import String
import rospy

#自定义类
class ShootCmd():

 def __init__(self):
    #为了发布射击的信息，这里要专门创建一个发布者节点，用来发布射击消息  ShootTopic: shoot_cmd
    self.shootPub = rospy.Publisher(rospy.get_param("ShootTopic","shoot_cmd"),String,queue_size=10)

 def shootPublish(self,cmd):
     msg = String()
     msg.data = cmd
     self.shootPub.publish(msg)
     rospy.loginfo("Shoot Command Published!")
     print(msg)
